using System;
using System.Collections.Generic;
using System.Text;

namespace FactoryPattern
{
    interface IFactoryOperation
    {
        Operation CreateOperation();
    }

    class AddFactory : IFactoryOperation
    {
        public Operation CreateOperation()
        {
            return new OperationAdd();
        }
    }

    class SubFactory : IFactoryOperation
    {
        public Operation CreateOperation()
        {
            return new OperationSub();
        }
    }
}
